const Model = require('../dbs/model/getCollection.js')
const LogsSchema = require('../dbs/schema/logsSchema.js')
const result = require("../com/result.js")

/**
 * 塞入日志记录
 */
let logSave = async (json) => {

    let LogsModel = await Model.getComModel({
        dataBase: 'com_info',
        tableName: 'logs',
        schema: LogsSchema
    });

    // 创建实例
    new LogsModel(JSON.parse(json)).save();

    return;
};


module.exports = {
    logSave
}  